package cn.mulanbay.schedule.mapper;

import cn.mulanbay.schedule.domain.TaskLog;
import cn.mulanbay.schedule.domain.TaskTrigger;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 * @author fenghong
 * @create 2022-01-16 10:00
 */
public interface TaskLogMapper extends BaseMapper<TaskLog> {

    TaskTrigger getTaskTriggerById(@Param("taskTriggerId") Long taskTriggerId);

    long getCountByDate(Long taskTriggerId, Date bussDate);

    long getCountByIdentityId(String scheduleIdentityId);

    List<TaskLog> getAutoRedoTaskLogList(String deployId, boolean supportDistri, Date startDate, Date endDate);

    TaskLog getLastTaskLog(Long taskTriggerId);

}
